<template>
    <div class="v-header"><div class="header">
      <span class="r" @click.stop="$emit('rclick')" v-if="ricon"><i class="amsp" :class="ricon"></i></span>
      <span class="l" @click.stop="$emit('lclick')" v-if="licon"><i class="amsp" :class="licon"></i></span>
      <div class="infoBox">
        <div class="logoImg"><img :class="{hand: getUserInfo && this.getUserInfo.sessionId}" src="/static/images/logo.png" alt="三维影像报告查询系统" @click.stop="goPatientManage"></div>
        <!-- <div class="name">{{patientInfo.name}}</div> -->
        <!-- <div class="feature">特征: {{patientInfo.age}}-{{patientInfo.feature}}</div> -->
      </div>
    </div></div>
</template>

<script>
  
import {mapGetters} from "vuex";

export default {
  components: {
  },
  props: ['ricon', 'licon'],
  data() {
    return {
    }
  },
  computed: {
    ...mapGetters('user', ['getUserInfo']),
  },
  created() {},
  mounted() {},
  methods:{
    goPatientManage () {
      if (this.getUserInfo && this.getUserInfo.sessionId) {
        this.$router.push({name: 'patientManage'})
      }
    }
  }
}
</script>
<style scoped lang="less">
.hand {
  cursor: pointer;
}
</style>